﻿#include "algthread.h"

AlgThread::AlgThread(QObject *parent) : QObject(parent)
{
	m_worker = new AlgWorker();
	m_worker->moveToThread(&m_workThread);
	connect(this, &AlgThread::sigInitialize, m_worker, &AlgWorker::Initialize);
	connect(&m_workThread, &QThread::finished, m_worker, &QObject::deleteLater);
	m_workThread.start();
}

AlgThread::~AlgThread()
{

}

void AlgThread::Initialize()
{
	emit sigInitialize();
}

